package net.eldeen.stockhack.model;

import java.math.BigDecimal;

public class Stock {

  private final String name;
  private BigDecimal price;

  public Stock(String name) {
    this.name = name;
  }

  public Stock(String name, String priceStr) {
    this(name);
    this.price = new BigDecimal(priceStr);
  }

  /**
   * @return the price
   */
  public BigDecimal getPrice() {
    return price;
  }

  /**
   * @param price the price to set
   */
  public void setPrice(BigDecimal price) {
    this.price = price;
  }

  /**
   * @return the name
   */
  public String getName() {
    return name;
  }
}
